<div ng-controller="DesktypeCtrl" ng-init="addAction()" class="sui-form form-horizontal">
    <ul class="sui-breadcrumb">
        <li><a href="#/desktype/list">餐桌类型</a></li>
        <li class="active"> {{tableid?'编辑':'新增'| translate}}
        </li>
    </ul>
    <div class="sui-form form-horizontal">
        <form name="form" novalidate ng-submit="addData()">
            <div class="control-group">
                <label class="control-label v-top">{{'类型名称'|translate}}:</label>
                <div class="controls">
                    <input ng-model="deskdata.name" type="text" name="name" class="input-medium">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label v-top">{{'最少就餐人数'|translate}}:</label>
                <div class="controls">
                    <input ng-model="deskdata.min_seat_num" type="text" name="min_seat_num"  class="input-mini">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label v-top">{{'最多就餐人数'|translate}}:</label>
                <div class="controls">
                    <input ng-model="deskdata.max_seat_num" type="text" name="max_seat_num"  class="input-mini">
                </div>
            </div>
            <div class="control-group" >
                <label class="control-label"></label>
                <div class="controls">
                    <button type="submit" class="sui-btn btn-primary">
                        {{'save' | translate}}
                    </button>
                </div>
            </div>
        </form>
    </div>
</div>